//
//  NSObject+Conver.m
//  JSBasicFramework
//
//  Created by Apple on 2019/9/16.
//  Copyright © 2019 Apple. All rights reserved.
//

#import "NSObject+Conver.h"

@implementation NSObject (Conver)
+ (NSArray *)jsonsToModelsWithJsons:(NSArray *)jsons {
    if (ValidArray(jsons)) {
        NSMutableArray *models = [NSMutableArray array];
        for (NSDictionary *json in jsons) {
            id model = [[self class] modelWithJSON:json];
            if (model) {
                [models addObject:model];
            }
        }
        return models;
    }
    return @[];
    
}
@end
